package com.cl.gateway.controller;

import com.alibaba.fastjson.JSON;
//import com.cl.oauth.core.resource.config.AuthorizationProperties;
import com.cl.gateway.config.AuthorizationProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    AuthorizationProperties authorizationProperties;

    @RequestMapping("test")
    public String test() {
        return JSON.toJSONString(authorizationProperties.getRequestNeedPermission("aaaa", "get"));
    }
}
